import { Controller, Get, Post, Body, Patch, Param, Delete } from '@nestjs/common';
import { UserShopIdService } from './user_shop-id.service';
import { CreateUserShopIdDto } from './dto/create-user_shop-id.dto';
import { UpdateUserShopIdDto } from './dto/update-user_shop-id.dto';

@Controller('user-shop-id')
export class UserShopIdController {
  constructor(private readonly userShopIdService: UserShopIdService) {}

  @Post()
  create(@Body() createUserShopIdDto: CreateUserShopIdDto) {
    return this.userShopIdService.create(createUserShopIdDto);
  }

  @Get()
  findAll() {
    return this.userShopIdService.findAll();
  }

  @Get(':id')
  findOne(@Param('id') id: string) {
    return this.userShopIdService.findOne(+id);
  }

  @Patch(':id')
  update(@Param('id') id: string, @Body() updateUserShopIdDto: UpdateUserShopIdDto) {
    return this.userShopIdService.update(+id, updateUserShopIdDto);
  }

  @Delete(':id')
  remove(@Param('id') id: string) {
    return this.userShopIdService.remove(+id);
  }
}
